package com.gl.ruanzhu.mapper;

import com.gl.common.mybatis.annotation.MapperPrimary;
import com.gl.ruanzhu.model.ApplicationInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


@MapperPrimary
@Component
public interface InspectionAndTestingMapper  {
    /**
     * 获取检测项目集合
     * @return
     */
      List<Map> getInspectionlist(@Param("detectionField") String detectionField, @Param("industryCategory") String industryCategory,@Param("sortType") int sortType,@Param("instruArea") String instruArea);

    /**
     * 根据id获取项目详情
     * @return
     */
      Map getProjectetailsDByid( Map map);

    /**
     * 获取检测项目总条数
     */
      int getCounttotal(@Param("detectionField") String detectionField, @Param("industryCategory") String industryCategory ,@Param("instruArea") String instruArea);

    /**
     * 添加申请
     * @param applicationInfo
     */
       void  addApplication(ApplicationInfo applicationInfo);

    /**
     *首页推荐项目
     */
     public   List<Map>  getRecommendProject( );
}
